class Product:
    def __init__(self):
        self.name ="None"
        self.subscribers = {}
        self.clientArrayList = []


    def notify(self,info):
        #对于所有关注该商品的顾客进行遍历，依次将信息发布出去
        for client in self.clientArrayList:
            client.receiveInfo(info)


    def register(self,client):
        self.clientArrayList.append(client)